<!--  -->
<template>
  <div>
    <div v-show="isLoading" :class="{ loadding: isLoading }">
      <img width="100%" src="../../assets/images/loading.gif" alt="" />
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      isLoading: false,
    };
  },
  props: {
    loading: Boolean,
  },
  watch: {
    loading() {
      this.$emit("input", this.isLoading);
    },
    isLoading() {
      this.isLoading = this.loading;
    },
  },

  computed: {},

  methods: {},
};
</script>
<style lang="stylus" rel="stylesheet/stylus" scoped>
.loadding
    width: 100vw;
    height: 100vh;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgb(252, 253, 254);
    z-index: 100000;
</style>
